<?php

class User extends Model {

    function User()
    {
        parent::Model();
    }
    
    function add()
    {
        $this->load->helper('form');
        $data = array(
        'user'=>$this->input->xss_clean($this->input->post('user')),
        'pass'=>$this->input->xss_clean(md5($this->input->post('pass'))),
        'email'=>$this->input->xss_clean($this->input->post('email')),
        'notes'=>$this->input->xss_clean($this->input->post('notes')),
        'ipaddress'=>$this->input->ip_address(),
        );
        
        $this->db->insert('user',$data);
    }
    
}